using System.Data.Entity.ModelConfiguration;
using Zoo.Cat.Domain.Entities.Polls;

namespace Zoo.Cat.Persistence.Mapping.Polls
{
    public partial class PollMap : EntityTypeConfiguration<Poll>
    {
        public PollMap()
        {
            this.ToTable("Poll");
            this.HasKey(p => p.Id);
            this.Property(p => p.Name).IsRequired().IsMaxLength();         
           
        }
    }
}